package businessEntities;

/**
 * Contains information of test query on the data base.
 */
public class TestQueryInformation {

    private final String errorMessage;
    private final String query;
    private final boolean testWasPassed;

    /**
     * Creates new TestQueryInformation.
     * If testWasPassed() returns true - errorMessage is not relevant and can contains any value include null or empty String.
     **/
    public TestQueryInformation(String errorMessage, String query, boolean passed) {
        this.errorMessage = errorMessage;
        this.query = query;
        this.testWasPassed = passed;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public String getQuery() {
        return query;
    }

    public boolean testWasPassed() {
        return testWasPassed;
    }
}
